package com.pjc.config;

public class BaseEnums {

	/**
	 * 系统用户枚举
	 * 
	 * @author 王畅
	 * @version 创建时间：2015-7-1 下午03:41:48
	 */
	public static enum SystemUser {
		Small_Secretary_User("100", "小秘书");

		private String id;
		private String desc;

		public String getId() {
			return this.id;
		}

		public void setId(String id) {
			this.id = id;
		}

		public String getDesc() {
			return this.desc;
		}

		public void setDesc(String desc) {
			this.desc = desc;
		}

		private SystemUser(String id, String desc) {
			this.id = id;
			this.desc = desc;
		}
	}

	/**
	 * 消息类型枚举
	 * 
	 * @author 王畅
	 * @version 创建时间：2015-7-1 下午03:41:41
	 */
	public static enum NoticeTypeEnum {

		Notice_Text(-4, "文本消息"),
		
		Notice_General(-3, "普通消息"),
		
		Notice_FlowData(-2, "滚动消息"),

		Notice_OfflineData(-1, "离线消息"),

		Notice_Stop_Schema(1, "停诊消息"),

		Notice_Line(2, "排队消息"),

		Notice_Test_check(3, "检验检查消息"),

		Notice_Pending_Pay(4, "待缴费消息"),

		Notice_Register_Success(5, "挂号成功消息"),

		Notice_Register_Cancel(6, "挂号取消消息"),

		Notice_Register_Returns(7, "挂号退费消息"),

		Notice_Payment_Success(9, "缴费成功消息"),
		
		Notice_Payment_Returns(10, "缴费退费消息"),
		
		Notice_Visit_Remind(12, "就诊提醒通知");

		private int id;
		private String desc;

		public int getId() {
			return this.id;
		}

		public void setId(int id) {
			this.id = id;
		}

		public String getDesc() {
			return this.desc;
		}

		public void setDesc(String desc) {
			this.desc = desc;
		}

		private NoticeTypeEnum(int id, String desc) {
			this.id = id;
			this.desc = desc;
		}

		public static NoticeTypeEnum valueOf(int value) {
			switch (value) {
			case -4:
				return Notice_Text;
			case -3:
				return Notice_General;
			case -2:
				return Notice_FlowData;
			case -1:
				return Notice_OfflineData;
			case 1:
				return Notice_Stop_Schema;
			case 2:
				return Notice_Line;
			case 3:
				return Notice_Test_check;
			case 4:
				return Notice_Pending_Pay;
			case 5:
				return Notice_Register_Success;
			case 6:
				return Notice_Register_Cancel;
			case 7:
				return Notice_Register_Returns;
			case 9:
				return Notice_Payment_Success;				
			case 10:
				return Notice_Payment_Returns;	
			case 12:
				return Notice_Visit_Remind;	
			default:
				return null;
			}
		}

	}

}
